package com.eistert.spring.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.eistert.spring.test")
public class EistertSpringTestApplication {

	public static void main(String[] args) {

		ApplicationContext context = new AnnotationConfigApplicationContext(EistertSpringTestApplication.class);
		UserServiceImpl bean = context.getBean(UserServiceImpl.class);
		bean.sayHello();
	}
}
